package models

//赞
type Zan struct {
	Id     int `gorm:"primary_key json:"id" form:"id"`
	UserId int `json:"user_id" form:"user_id"`
	PostId int `json:"post_id" form:"post_id"`
	Type   int `json:"type" form:"type"`
}

func (Zan) TableName() string {
	return "zan"
}

//收藏
type Collection struct {
	Id     int `gorm:"primary_key json:"id" form:"id"`
	UserId int `json:"user_id" form:"user_id"`
	PostId int `json:"post_id" form:"post_id"`
}

func (Collection) TableName() string {
	return "collection"
}
